//
//  UIImageView+OnlineImage.m
//  YYZB
//
//  Created by 顾悦 on 16/3/25.
//
//

#import "UIImageView+OnlineImage.h"

#import "UIImageView+WebCache.h"

@implementation UIImageView (OnlineImage)

- (void)setOnlineImage:(NSString *)URLString {
    [self setOnlineImage:URLString placeHolderImage:nil];
}

- (void)setOnlineImage:(NSString *)URLString placeHolderImage:(UIImage *)image {
    [self sd_setImageWithURL:[NSURL URLWithString:URLString] placeholderImage:image];
}

@end
